package com.jiyun.controller;


import com.cn.jiyun.entity.pojo.Strategy;
import com.cn.jiyun.entity.pojo.Yon;
import com.jiyun.result.Result;
import com.jiyun.service.YonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
@RequestMapping("/yon")
public class YonController {
    @Autowired
    private YonService yonService;

    @RequestMapping("/add")
    public void add(@RequestBody Yon yon){
        yonService.save(yon);
    }

}
